/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package za.ac.cput.goodOCP.AppConfig;

import org.springframework.beans.factory.annotation.Configurable;
import org.springframework.context.annotation.Bean;
import za.ac.cput.goodOCP.goodOCP.Impl.Developer;
import za.ac.cput.goodOCP.goodOCP.Impl.Technician;
import za.ac.cput.goodOCP.goodOCP.SalaryInterface;

/**
 *
 * @author Administrator
 */
@Configurable
public class EmplConfig {
    @Bean(name="kami")
    public SalaryInterface kami()
    {
        return new Developer();
    }
    @Bean(name="pr")
    public SalaryInterface pr()
    {
        return new Technician();
    }
}
